<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../../js/vue.js"></script>
</head>
<body>

<div id="div_id">
    <label for="male">
        <input type="radio" id="male" value="男" v-model="sex"/>男
    </label>
    <label for="female">
        <input type="radio" id="female" value="女" v-model="sex"/>女
    </label>
    <h2>{{sex}}</h2>
</div>

<script>
    const app=new Vue({
        el:"#div_id",
        data:{
            sex:''
        }
    })
</script>
</body>
</html>